// 初始化Ext状态管理器，在Cookie中记录用户的操作状态
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());

Ext.onReady(function(){

    // 鼠标移上后出现提示框
    Ext.QuickTips.init();
    
    Ext.state.Manager.setProvider(new Ext.state.CookieProvider());

//	Ext.grid.filter.StringFilter.prototype.icon = 'images/icons/find.png';
	
    // 启动主界面
    var viewport = new Ext.Viewport({
        layout:'border',
        items:[{xtype: 'pn_north'}, {xtype:'pn_west'}, {xtype:'pn_center'}],
        renderTo: Ext.getBody()
    });

    // set portal to the front
    Ext.getCmp('pn_main').layout.setActiveItem('pn_portal');
    Ext.getCmp('pn_content').layout.setActiveItem('tbp_main');
    viewport.doLayout();
   // Ext.getCmp('tbp_main').add(new refrigeratory.pn_zlfx()).show();
   // Ext.getCmp('tbp_main').add('pn_xycj').show();
    //Ext.getCmp('pn_main').show();

    // remove the loading mask
    setTimeout(function(){
        Ext.get('loading').remove();
        Ext.get('loading-mask').fadeOut({remove:true});
    }, 250);
	//debug.captureEvents(Ext.getCmp("trp_xscglr"));
});